﻿using VideoServices.Domain.Entities;

namespace VideoServices.Domain.DAL
{
    public abstract class BaseDataAccess
    {
        private VideoServiceDataContext dataContext;

        /// <summary>
        /// Gets the data context for the Video Services application.
        /// </summary>
        /// <value>The data context.</value>
        protected VideoServiceDataContext DataContext
        {
            get
            {
                if (dataContext == null)
                {
                    dataContext = new VideoServiceDataContext();
                }
                return dataContext;
            }
        }
    }
}
